package org.zxp.javacheck.InnerClass.anonymousinnerclass;

/**
 * @program: effectiveJava
 * @description:测试匿名内部类
 * @author: X-Pacific zhang
 * @create: 2019-08-21 13:55
 **/
public class Test {
    public static void main(String[] args){
        new Thread(new Runnable(){
            @Override
            public void run() {
                System.out.println("匿名内部类输出");
            }
        }).start();
        //注意，lamda实现并不是内部类
        new Thread(()->System.out.println("尝试lamda表达是不是也算匿名内部类")).start();
    }
}
